Micron Document
baubs git

Node / mirrors / respira / commits / 469d986

Commit 469d9860dee1066c7d2a36ad10464f71653511f1


Parents : 6e38ba8
Author : Jan-Henrik Bruhn <jan-henrik.bruhn@offis.de>
Date : 2025-12-22T11:54:30+01:00

fix: Apply chart/catalogNumber duplicate detection to all components

Extend the duplicate detection logic from PatternCanvas to ProgressMonitor and PatternInfo. Now all components only show the chart field when it differs from catalogNumber, preventing redundant information display.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Changes

2 files changed, 12 insertions(+), 2 deletions(-)


Diff

diff --git a/src/components/PatternInfo.tsx b/src/components/PatternInfo.tsx
index a8fcc20..165ff75 100644
--- a/src/components/PatternInfo.tsx
+++ b/src/components/PatternInfo.tsx
@@ -117,7 +117,13 @@ export function PatternInfo({
.join(" ");
// Secondary metadata: chart and description
- const secondaryMetadata = [color.chart, color.description]
+ // Only show chart if it's different from catalogNumber
+ const secondaryMetadata = [
+ color.chart && color.chart !== color.catalogNumber
+ ? color.chart
+ : null,
+ color.description,
+ ]
.filter(Boolean)
.join(" ");

diff --git a/src/components/ProgressMonitor.tsx b/src/components/ProgressMonitor.tsx
index 87128a0..48b5dd7 100644
--- a/src/components/ProgressMonitor.tsx
+++ b/src/components/ProgressMonitor.tsx
@@ -281,8 +281,12 @@ export function ProgressMonitor() {
.join(" ");
// Secondary metadata: chart and description
+ // Only show chart if it's different from catalogNumber
const secondaryMetadata = [
- block.threadChart,
+ block.threadChart &&
+ block.threadChart !== block.threadCatalogNumber
+ ? block.threadChart
+ : null,
block.threadDescription,
]
.filter(Boolean)

Served by rngit 1.3.3 - Generated in 0.07s